package com.xin.di.uav.applet.mapper;

import com.xin.di.uav.applet.po.UserAccountPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserAccountsMapper {

    @Select({"<script>",
            "SELECT id,display_name FROM user_accounts WHERE password = #{password} AND phone_number=#{userName} and status=1 ",
            "</script>"})
    UserAccountPO selectById(@Param("password") String password, @Param("userName") String userName);
}
